﻿namespace FlyingEye.DeviceMonitor
{
    public class ReadValueTask
    {
        public ReadValueTask(
            Guid id,
            Guid deviceClientId,
            string deviceName,
            string taskName,
            string address,
            string dataType,
            int interval,
            string taskType)
        {
            Id = id;
            DeviceClientId = deviceClientId;
            DeviceName = deviceName;
            TaskName = taskName;
            Address = address;
            DataType = dataType;
            Interval = interval;
            TaskType = taskType;
        }

        public Guid Id { get; set; }

        /// <summary>
        /// 设备客户端 ID
        /// 也是设备主机 ID
        /// </summary>
        public Guid DeviceClientId { get; set; }

        /// <summary>
        /// 设备名称
        /// 一个设备主机下可能有多个设备
        /// </summary>
        public string DeviceName { get; set; }

        public string TaskName { get; set; }

        /// <summary>
        /// PLC 点位的地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// PLC 读取的数据类型
        /// </summary>
        public string DataType { get; set; }

        /// <summary>
        /// 任务周期
        /// </summary>
        public int Interval { get; set; }

        /// <summary>
        /// read-numeric-value
        /// read-string-value
        /// </summary>
        public string TaskType { get; set; }
     
    }
}
